﻿namespace CTP.CRM.Repository.Attributes;

/// <summary>
/// 自定义权限属性
/// </summary>
public class UserDefinePermissionsAttribute : Attribute
{
    /// <summary>
    /// 自定义权限属性构造函数
    /// </summary>
    /// <param name="name"> 权限名称 </param>
    /// <param name="description"> 权限描述 </param>
    public UserDefinePermissionsAttribute(string name, string description = "")
    {
        PermissionName = name;
        PermissionDescription = description;
    }

    public string PermissionName { get; set; }
    public string PermissionDescription { get; set; }
}